cpufreq: fix statistic lock problem
authorKeir Fraser <keir.fraser@citrix.com>
Fri, 26 Mar 2010 08:49:13 +0000 (08:49 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Fri, 26 Mar 2010 08:49:13 +0000 (08:49 +0000)
commit56d00aa7945e01291b40d05c60dde4b4dab0ce4c
treebeae702e214ed35a09538e4fee993d5ed8ad23d5
parentb8352255b3eac73ab2f15874575613603aa2e9c0
cpufreq: fix statistic lock problem

cpufreq_statistic_lock should not only protect the statistic memory
pointed by cpufreq_statistic_data[cpu], but also have to protect the
pointer in cpufreq_statistic_data[cpu] itself. So move the read
operation of cpufreq_statistic_data[cpu] after
spin_lock(cpufreq_statistic_lock).

Signed-off-by: Wei Gang <gang.wei@intel.com>
xen/drivers/cpufreq/utility.c